package  
{
	import net.flashpunk.graphics.Text;
	import net.flashpunk.Entity;
	
	public class scoreText extends Entity
	{
		[Embed(source = 'fonts/fracas_font.ttf', embedAsCFF = "false", fontFamily = 'ScoreFont')]
		private const SCORE_FONT:Class;
		private var theText:Text;
	
		public function scoreText() 
		{
			Text.font = "ScoreFont";
			theText = new Text("0");
			graphic = theText;
			x = 350;
			y = 5;
			layer = -1;
		}
		public override function update():void {
			theText.text =fracasWorld.score.toString();
		}
		
	}

}